from alg import Solution
from gen import generate_test_cases

def main():
    test_cases = generate_test_cases()
    s = Solution()
    for i, case in enumerate(test_cases):
        turnedOn = case["turnedOn"]
        expected = sorted(case["output"])
        result = sorted(s.readBinaryWatch(turnedOn))
        print(f"测试样例 {i+1}:")
        print(f"输入: turnedOn={turnedOn}")
        print(f"输出: {result}")
        print(f"期望输出: {expected}")
        print(f"测试通过: {result == expected}")
        print()

if __name__ == "__main__":
    main() 